package com.tensquare.article.controller;

import com.tensquare.entity.Result;
import com.tensquare.entity.StatusCode;
import org.springframework.web.bind.annotation.ControllerAdvice;

@ControllerAdvice
public class BaseExceptionHandler {

    public Result handler(Exception e){
        return new Result(false, StatusCode.ERROR,e.getMessage());
    }

}
